package com.maket.scxx.domain;


import com.ruoyi.common.core.web.domain.BaseEntity;

import java.io.Serializable;

/**
 * 检验标准与产品表
 * @TableName jybz_inspection_standards_and_cp_product
 */
public class JybzInspectionStandardsAndCpProduct extends BaseEntity {
    /**
     * 检验标准与产品id
     */
    private Integer bzId;

    /**
     * 模板编码
     */
    private String mbCode;

    /**
     * 产品编码
     */
    private String cpCode;

    private String cpName;

    public String getCpName() {
        return cpName;
    }

    public void setCpName(String cpName) {
        this.cpName = cpName;
    }

    private static final long serialVersionUID = 1L;

    /**
     * 检验标准与产品id
     */
    public Integer getBzId() {
        return bzId;
    }

    /**
     * 检验标准与产品id
     */
    public void setBzId(Integer bzId) {
        this.bzId = bzId;
    }

    /**
     * 模板编码
     */
    public String getMbCode() {
        return mbCode;
    }

    /**
     * 模板编码
     */
    public void setMbCode(String mbCode) {
        this.mbCode = mbCode;
    }

    /**
     * 产品编码
     */
    public String getCpCode() {
        return cpCode;
    }

    /**
     * 产品编码
     */
    public void setCpCode(String cpCode) {
        this.cpCode = cpCode;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        JybzInspectionStandardsAndCpProduct other = (JybzInspectionStandardsAndCpProduct) that;
        return (this.getBzId() == null ? other.getBzId() == null : this.getBzId().equals(other.getBzId()))
            && (this.getMbCode() == null ? other.getMbCode() == null : this.getMbCode().equals(other.getMbCode()))
            && (this.getCpCode() == null ? other.getCpCode() == null : this.getCpCode().equals(other.getCpCode()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBzId() == null) ? 0 : getBzId().hashCode());
        result = prime * result + ((getMbCode() == null) ? 0 : getMbCode().hashCode());
        result = prime * result + ((getCpCode() == null) ? 0 : getCpCode().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", bzId=").append(bzId);
        sb.append(", mbCode=").append(mbCode);
        sb.append(", cpCode=").append(cpCode);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}